package com.ytjj.qmyx.mall.mapper;

import com.ytjj.qmyx.mall.model.OrdersDelay;
import com.ytjj.qmyx.mall.model.dto.OrderInfoReturnDTO;
import com.ytjj.qmyx.mall.model.response.MyShoppingListResponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 *  *
 **/
public interface OrderInfoDao {


    List<MyShoppingListResponse> findByUserId(@Param("userId") Integer userId, @Param("status") Integer status);

    void updateAppraiseAndEvaluation(@Param("isAppraise") Byte isAppraise, @Param("isEvaluation") int isEvaluation, @Param("id") Integer id);

    OrderInfoReturnDTO findById(Integer orderInfoId);

    int selectByUserIdAndProductAndStatus(Integer productId, Integer userId);

    int selectByUserIdAndStatus(Integer userId, String activityType);

    void updateOrderStatusById(@Param("ordersInfoId") Integer ordersInfoId);

    Integer findByBankerOrderId(String childOrderNo);

    List<OrdersDelay> findDelayRemark(@Param("ordersInfoId") Integer ordersInfoId);
}
